package com.zzyl.service;

import com.zzyl.base.PageBean;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.dto.NursingPlanPageQueryDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;

import java.util.List;

public interface NursingPlanService {

    /**
     * 根据名称和状态分页查询
     *
     * @param dto 护理计划分页条件查询Dto
     * @return {@code PageBean<NursingPlanVo> }
     * @author YiSheep
     */
    PageBean<NursingPlanVo> pageQuery(NursingPlanPageQueryDto dto);

    /**
     * 添加护理计划
     *
     * @param dto 护理计划Dto
     * @author YiSheep
     */
    void addNursingPlan(NursingPlanDto dto);

    /**
     * 根据ID查询护理计划
     *
     * @param id 护理计划ID
     * @return {@code NursingPlanVo }
     * @author YiSheep
     */
    NursingPlanVo getDetailById(Long id);

    /**
     * 修改护理计划
     *
     * @param dto 护理计划Dto
     * @author YiSheep
     */
    void updateNursingPlan(NursingPlanDto dto);

    /**
     * 删除护理计划
     *
     * @param id 护理计划ID
     * @author YiSheep
     */
    void deleteById(Long id);

    /**
     * 启用/禁用护理计划
     *
     * @param id     护理计划ID
     * @param status 状态
     * @author YiSheep
     */
    void enableOrDisable(Long id, Integer status);

    /**
     * 查询所有护理计划
     *
     * @return {@code List<NursingPlan> }
     * @author YiSheep
     */
    List<NursingPlan> getAllNursingPlan();
}

